﻿using IMark.DAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IMark
{
    public partial class ThanhToanStep1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                Dictionary<long, SAN_PHAM> Cart = Session["Cart"] as Dictionary<long, SAN_PHAM>;
                if (Cart.Count == 0)
                    Response.Redirect("Default.aspx");
                if (Session["User"] != null)
                {
                    Response.Redirect("ThanhToanStep2.aspx");
                }
            }
            else
            {
                if (Session["User"] == null)
                {
                    Response.Write("sai roi");
                }
            }

        }

        
    }
}